package com.csust.travel.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@TableName("product_info")
@Accessors(chain = true)
public class ProductInfo  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private String id;

    private String userId;

    private String title;

    private String intro;

    private String image;

    private Long price;

    private Long originalPrice;

    private String typeCode;

    private String typeName;

    private Integer postType; //发货方式

    private Integer likeCount;//想要人数

    private String adcode;//地址代码

    private String province;

    private String city;

    private String district;

    private Integer status;//商品状态  9 上线  12 卖出

    private Long createTime;

    private Long updateTime;

    @TableField(exist = false)
    private ProductVoucher productVoucher;


}
